package com.xbongbong.pro.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 字段高级操作枚举
 *
 * @author feng.zheng
 * @version v1.1.3
 * @date 2019/8/5 11:27
 * @since v1.1.3
 */
@Getter
public enum FieldAdvanceOperationEnum {

    // 字段高级操作枚举
    VISBLE(1, "enum.fieldAdvanceOperation.name.visble", "visibleScopeRule"),

    ADD(2, "enum.fieldAdvanceOperation.name.add", "addRule"),

    DEL(3, "enum.fieldAdvanceOperation.name.del", "removeRule"),
    ;
    /**
     * 操作
     */
    Integer operation;
    /**
     * 名称
     */
    String name;
    /**
     * 属性
     */
    String field;
    FieldAdvanceOperationEnum(Integer operation, String name, String field) {
        this.operation = operation;
        this.name = name;
        this.field = field;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }

}
